package com.ruoyi.crm.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 产品管理业务对象
 *
 * @author ruoyi
 * @date 2025-07-10
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CrmProductInfoBo extends BaseEntity {

    /**
     * 产品ID
     */
    @NotNull(message = "产品ID不能为空", groups = { EditGroup.class })
    private Long productId;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 产品名称
     */
    @NotBlank(message = "产品名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productName;

    /**
     * 价格
     */
    @NotNull(message = "价格不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long price;

    /**
     * 成本价
     */
    @NotNull(message = "成本价不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long costPrice;

    /**
     * 合计
     */
    @NotNull(message = "合计不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long aggregate;

    /**
     * 产品编号
     */
    @NotBlank(message = "产品编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productNumber;

    /**
     * 产品描述
     */
    @NotBlank(message = "产品描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productDescription;

    /**
     * 产品单位
     */
    @NotBlank(message = "产品单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productUnit;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 是否上架
     */
    @NotBlank(message = "是否上架不能为空", groups = { AddGroup.class, EditGroup.class })
    private String launch;


}
